package com.ccx.coachsite.ui.share;


import android.content.Context;
import android.util.AttributeSet;
import android.view.View;
import android.widget.EditText;

import com.ccx.coachsite.R;
import com.ccx.coachsite.ui.customview.LazyViewPager;
import com.ccx.coachsite.util.U;

public class OpenShareTabLazyViewPager extends LazyViewPager {
	
	public OpenShareTabLazyViewPager(Context context) {
		super(context);
	}

	public OpenShareTabLazyViewPager(Context context, AttributeSet attrs) {
		super(context, attrs);
	}

	public OpenShareTabLazyViewPager(Context context, AttributeSet attrs, int defStyle) {
		super(context, attrs, defStyle);
	}

	@Override
	protected boolean loadContentData(int childAt) {
		View loadView = getChildAt(childAt);
		switch (childAt) {
		case 0:
			break;
		case 1:
			
			break;	
		case 2:
			break;
		}
		
		return true;
	}
	
	@Override
	public void snapToScreen(int whichScreen) {
		super.snapToScreen(whichScreen);
		
		if ( whichScreen!=0 ) {
			//滑动到其他模块则隐藏手机号界面的输入法
			//View oneView = getChildAt(0);
			EditText edtPhone1 = (EditText)findViewById(R.id.tuijian_edit_phone1);
			EditText edtPhone2 = (EditText)findViewById(R.id.tuijian_edit_phone2);
			EditText edtPhone3 = (EditText)findViewById(R.id.tuijian_edit_phone3);
			U.hideKeyboard(getContext(), edtPhone1);
			U.hideKeyboard(getContext(), edtPhone2);
			U.hideKeyboard(getContext(), edtPhone3);
		}
	}

}
